﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Adams.Public.Api.Controllers
{
    [EnsureHttps]
    public class FilesController : Controller
    {
        public ActionResult GetFile(Adams.Public.DataTransfer.Files.GetFileInput input)
        {
            input.Url = "/" + input.Url.Trim('/');
            var model = DataAccess.Files.GetFile(input);
            return new JsonXmlResult(model);
        }
    }
}
